@import "@jetbrains/kotlin-web-site-ui/out/components/breakpoints/media.pcss";

.foundationPreview {
    border-radius: 8px;
    background: #E8E8E8;
    padding: 32px;
    margin-top: 96px;
    height: 320px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.foundationPreviewImage {
    position: absolute;
    top: 0;
    right: 0;
    width: 434px;
    height: 320px;
    z-index: 1;
}

.title {
    margin: 0;
    z-index: 2;
}

.description {
    margin-top: 8px;
    flex: 1 1 auto;
    z-index: 2;
}

.secondBlock {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 2;
}

.companies {
    display: flex;
    gap: 16px;
    align-items: center;
}

@media (--ktl-tl) {
    .foundationPreview {
        padding: 72px 24px;
        height: auto;
        align-items: center;
    }

    .secondBlock {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .companies {
        flex-wrap: wrap;
        justify-content: space-evenly;
        margin-top: 48px;
        max-width: 376px;
    }

    .title {
        text-align: center;
    }

    .description {
        max-width: 300px;
        text-align: center;
    }

    .companies {
        gap: 12px;
    }

    .buttonWrap {
        margin-top: 48px;
    }
}

@media (--ktl-tl-min) {
    .foundationPreviewImage {
        right: -48px;
        top: -6px;
    }

    .companies {
        flex-wrap: wrap;
        gap: 8px;
        max-width: 745px;
    }

    .companyLogo {
        margin-right: 10px;
        display: flex;
    }

    .buttonWrap {
        align-self: flex-end;
    }
}

@media (--ktl-ds) and (--ktl-tl-min) {
    .companies {
        max-width: 585px;
    }
}

@media (--ktl-tl) {
    .foundationPreviewImage {
        top: auto;
        right: -120px;
        bottom: -120px;
        transform: rotate(115deg);
    }

    .buttonWrap {
        align-self: center;
    }

    .companyLogo:nth-child(2) {
        margin-right: 0;
    }
}

@media (--ktl-tm) {
    .foundationPreview {
        margin-top: 48px;
    }
}

@media (--ktl-ts) {
    .foundationPreview {
        margin-top: 72px;
    }
}

@media (--ktl-mm) {
    .foundationPreview {
        margin-left: -24px;
        margin-right: -24px;
        border-radius: 0;
    }
}

.responsiveHidden {
    @media (--ktl-ds) {
        display: none;
    }
    @media (--ktl-tl) {
        display: initial;
    }
}

.responsiveCapitalized {
    @media (--ktl-ds) {
        text-transform: capitalize;
    }
    @media (--ktl-tl) {
        text-transform: none;
    }
}
